#include <iostream>
using namespace std;
#include <iomanip>
using std::setw;
#include <cmath>
#include <cstdlib>

int code_count(int i);

int main()
{
	int i=10000;
	code_count(i);
}


int code_count(int i)
{
	int a[6]={0,0,0,0,0,0};
	for(int j=0;j<i;j++)
	{
		int ran=(rand() % (6-1+1))+ 1;
		switch (ran)
		{
			case 1:
				a[0]=a[0]+1;
				break;
			case 2:
				a[1]=a[1]+1;
				break;
			case 3:
				a[2]=a[2]+1;
				break;
			case 4:
				a[3]=a[3]+1;
				break;
			case 5:
				a[4]=a[4]+1;
				break;
			case 6:
				a[5]=a[5]+1;
				break;
		}
	}
	for(int j=0;j<=5;j++)
	{
		cout << j+1 << "counts: " << a[j] << "\n";
	}
	return 0;
}
